package cn.com.open.itembank.dto;

import org.springframework.util.StringUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * 试题导出模型
 */
public class QuestionImportModel {

    /**
     * 题干
     */
    private String prompt;
    /**
     * 选项
     */
    private List<String> choices;
    /**
     * 答案
     */
    private List<String> answer;
    /**
     * 分数
     */
    private String score;
    /**
     * 子题
     */
    private List<QuestionImportModel> subItems;

    /**
     * Gets prompt.
     *
     * @return the prompt
     */
    public String getPrompt() {
        return prompt;
    }

    /**
     * Sets prompt.
     *
     * @param prompt the prompt
     */
    public void setPrompt(String prompt) {
        this.prompt = prompt;
    }

    /**
     * Gets choices.
     *
     * @return the choices
     */
    public List<String> getChoices() {
        if (choices == null) {
            choices = new ArrayList<>();
        }
        return choices;
    }

    /**
     * Gets choices.
     * @return the choices
     */
    public List<String> getAnswer() {
        if (answer == null) {
            answer = new ArrayList<>();
        }
        return answer;
    }

    /**
     * Gets score.
     *
     * @return the score
     */
    public String getScore() {
        return score;
    }

    /**
     * Sets score.
     *
     * @param score the score
     */
    public void setScore(String score) {
        this.score = score;
    }

    /**
     * Gets sub items.
     *
     * @return the sub items
     */
    public List<QuestionImportModel> getSubItems() {
        if (subItems == null) {
            subItems = new ArrayList<>();
        }
        return subItems;
    }

    /**
     * Sets choices.
     *
     * @param choices the choices
     */
    public void setChoices(List<String> choices) {
        this.choices = choices;
    }

    /**
     * Sets answer.
     *
     * @param answer the answer
     */
    public void setAnswer(List<String> answer) {
        this.answer = answer;
    }
    /**
     * Instantiates a new Question import model.
     */
    public QuestionImportModel() {
        this.score = "";
        this.prompt = "";
        this.choices = new ArrayList<>();
        this.answer = new ArrayList<>();
        this.subItems = new ArrayList<>();
    }

}

